a bag of gold coins #158

Parent #115Owner #36Flags read, fertileSource RPG Core/rpgcore-patched.db

Aliases: a bag of gold coins, bag of gold coins, gold coins, coins

2 verbs · 22 properties · 0 children

Verbs

VerbSpecFlagsDefinerLines
g*et t*akethis none nonerxd#15815
init_for_corethis none thisrxd#1583

Properties

PropertyDefinerFlagsOwnerValue
money#115rc#36{{"gold", 6.5}}
help_msg#115rc#36<clear>
drop_failed_msg#5rc#36<clear>
drop_succeeded_msg#5rc#36<clear>
odrop_failed_msg#5rc#36<clear>
odrop_succeeded_msg#5rc#36<clear>
otake_succeeded_msg#5rc#36<clear>
otake_failed_msg#5rc#36<clear>
take_succeeded_msg#5rc#36<clear>
take_failed_msg#5rc#36<clear>
value_base#102r#2<clear>
damage_base#102r#2<clear>
x_loc#102r#368
y_loc#102r#364
ansi_title#102r#36<clear>
obvious#102r#36<clear>
build_help#102rc#36<clear>
key#1c#360
aliases#1rc#36{"a bag of gold coins", "bag of gold coins", "gold coins", "coins"}
description#1rc#36<clear>
object_size#1r#36{1831, -1090650497}
html#1rc#36<clear>

Ancestry

Ancestors (nearest first): #115 generic death purse#5 generic thing#102 subthing#1 Root Class

Children: none

Call graph

calls n158_0 #158:g*et n52_0 #52:has_property n158_0->n52_0 n115_0 #115:g*et n158_0->n115_0 n6_18 #6:tell n158_0->n6_18 n55_16 #55:slice n158_0->n55_16 n5_2 #5:moveto n158_0->n5_2 n158_1 #158:init_for_core n158_1->n5_2

Source

g*et t*ake

Spec this none noneFlags rxdOwner #36Definer #158

Referenced by

none

Source

1if (!$object_utils:has_property(player, "money"))
2return pass(@args);
3endif
4fork (4)
5player:tell("(Type \"money\" or \"cash\" to check your funds. The bag will be recycled.)");
6for stuff in (this.money)
7if (cindex = stuff[1] in $list_utils:slice(player.money, 1))
8player.money[cindex][2] = player.money[cindex][2] + stuff[2];
9else
10player.money = setadd(player.money, stuff);
11endif
12endfor
13this:moveto($nothing);
14endfork
15pass(@args);

init_for_core

Spec this none thisFlags rxdOwner #36Definer #158

Referenced by

none

Source

1this:moveto($player_start);
2this.money = {{"gold", 6.5}};
3return;