replicating monster #136

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

Aliases: replicating monster, monster

2 verbs · 54 properties · 1 children

Verbs

VerbSpecFlagsDefinerLines
rot_awaythis none thisrxd#13620
init_for_corethis none thisrxd#13614

Properties

PropertyDefinerFlagsOwnerValue
child_limit#136rc#3610
lifespan#136rc#3610800
plural_name#136rc#36"monsters"
home#107rc#36#62
grave#107rc#36#138
rot_time#107rc#36<clear>
gestate#107rc#36<clear>
birth_msg#107rc#36<clear>
weapon_types#107rc#36<clear>
wander_task#107r#36<clear>
wait_seconds#107rc#36<clear>
terrain_only#107rc#36<clear>
enemy#107r#36<clear>
hostility#107rc#36<clear>
death_msg#107rc#36<clear>
alert#107r#36<clear>
mobile#107r#36<clear>
alive#107r#36<clear>
wielded#107rc#36#111
natural_def#107rc#36<clear>
greedy#107rc#36<clear>
edible#107rc#36<clear>
wander_ok#107r#36<clear>
my_tell#107rwc#36<clear>
following#107r#36<clear>
followed_by#107r#36<clear>
countdown_til_stop#107r#36<clear>
stats#107r#36<clear>
stats_current#107r#36<clear>
skills#107r#36<clear>
money#107r#36<clear>
gender#94rc#36<clear>
pqc#94rc#36<clear>
pq#94rc#36<clear>
ppc#94rc#36<clear>
pp#94rc#36<clear>
prc#94rc#36<clear>
pr#94rc#36<clear>
poc#94rc#36<clear>
po#94rc#36<clear>
psc#94rc#36<clear>
ps#94rc#36<clear>
value_base#102r#2<clear>
damage_base#102r#2<clear>
x_loc#102r#36<clear>
y_loc#102r#36<clear>
ansi_title#102r#36<clear>
obvious#102r#36<clear>
build_help#102rc#36
list of 7{"-------------------------", " PROPS TO @SET", "----------------", "child_limit how many of this generic type can be replicated.", "lifespan how many seconds until recycling.", "plural_name in case more than one appears in the same room.", "grave to the appropriate breeder object, in case the parent monster's 'die' verb gets accidentally triggered."}
key#1c#360
aliases#1rc#36{"replicating monster", "monster"}
description#1rc#36<clear>
object_size#1r#36{3282, -1090650497}
html#1rc#36<clear>

Ancestry

Ancestors (nearest first): #107 generic monster#94 Generic Gendered Object#102 subthing#1 Root Class

Children: #162 a fob goblin

Call graph

calls n136_0 #136:rot_away n107_14 #107:title n136_0->n107_14 n107_21 #107:dump_goodies n136_0->n107_21 n1_4 #1:titlec n136_0->n1_4 n99_17 #99:schedule n136_0->n99_17 n107_20 #107:birth n136_0->n107_20 n99_4 #99:valid_task n136_0->n99_4 n63_1 #63:_recycle n136_0->n63_1 n136_1 #136:init_for_core n107_28 #107:init_for_core n136_1->n107_28

Source

rot_away

Spec this none thisFlags rxdOwner #2Definer #136

Referenced by

none

Source

1"Recycles if not fertile.";
2"wiz perms";
3this.location:announce_all("The corpse of ", this:title(), " dissolves quickly.");
4this:dump_goodies(1);
5if (this.f)
6move(this, this.grave);
7this.location:announce_all_but({this}, this:titlec(), " has arrived.");
8if (this.gestate > 120)
9$scheduler:schedule(this.gestate, this, "birth");
10else
11fork (this.gestate)
12this:birth();
13endfork
14endif
15else
16if ($scheduler:valid_task(this.wander_task))
17$scheduler:kill_task(this.wander_task);
18endif
19$recycler:_recycle(this);
20endif

init_for_core

Spec this none thisFlags rxdOwner #2Definer #136

Referenced by

none

Source

1if (caller_perms().wizard)
2if (this == $replicating_monster)
3this.child_limit = 10;
4this.lifespan = 10800;
5this.plural_name = "monsters";
6else
7for p in (properties($replicating_monster))
8if ((!p) in {"build_help", "help_msg"})
9clear_property(this, p);
10endif
11endfor
12endif
13return pass(@args);
14endif