a bag of gold coins #158
Aliases: a bag of gold coins, bag of gold coins, gold coins, coins
2 verbs · 22 properties · 0 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
g*et t*ake | this none none | rxd | #158 | 15 |
init_for_core | this none this | rxd | #158 | 3 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
money | #115 | rc | #36 | {{"gold", 6.5}} |
help_msg | #115 | rc | #36 | <clear> |
drop_failed_msg | #5 | rc | #36 | <clear> |
drop_succeeded_msg | #5 | rc | #36 | <clear> |
odrop_failed_msg | #5 | rc | #36 | <clear> |
odrop_succeeded_msg | #5 | rc | #36 | <clear> |
otake_succeeded_msg | #5 | rc | #36 | <clear> |
otake_failed_msg | #5 | rc | #36 | <clear> |
take_succeeded_msg | #5 | rc | #36 | <clear> |
take_failed_msg | #5 | rc | #36 | <clear> |
value_base | #102 | r | #2 | <clear> |
damage_base | #102 | r | #2 | <clear> |
x_loc | #102 | r | #36 | 8 |
y_loc | #102 | r | #36 | 4 |
ansi_title | #102 | r | #36 | <clear> |
obvious | #102 | r | #36 | <clear> |
build_help | #102 | rc | #36 | <clear> |
key | #1 | c | #36 | 0 |
aliases | #1 | rc | #36 | {"a bag of gold coins", "bag of gold coins", "gold coins", "coins"} |
description | #1 | rc | #36 | <clear> |
object_size | #1 | r | #36 | {1831, -1090650497} |
html | #1 | rc | #36 | <clear> |
Ancestry
Ancestors (nearest first): #115 generic death purse → #5 generic thing → #102 subthing → #1 Root Class
Children: none
Call graph
Source
g*et t*ake
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
Referenced by
none
Source
1this:moveto($player_start); 2this.money = {{"gold", 6.5}}; 3return;