Skip to content

Commit 3c9a517

Browse files
committed
Drop names for act methods that are used by only one monster.
1 parent 2344da9 commit 3c9a517

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

simalq/tile/monster.hy

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@
568568
:$shot-frequency (f/ 4 5)
569569
570570
:act (meth []
571-
(doc f"Coward — If the monster is within {@flee-range} squares of you, it flees (per `Approach` in reverse). Otherwise, if it has line of sight to you (ignoring all obstacles), it adds {@shot-frequency} to its shot power. If this is ≥1, it subtracts 1 to shoot you. Otherwise, it wanders (per `Wander`).")
571+
(doc f"If the monster is within {@flee-range} squares of you, it flees (per `Approach` in reverse). Otherwise, if it has line of sight to you (ignoring all obstacles), it adds {@shot-frequency} to its shot power. If this is ≥1, it subtracts 1 to shoot you. Otherwise, it wanders (per `Wander`).")
572572
573573
(when (and
574574
(<= (dist G.player.pos @pos) @flee-range)
@@ -651,7 +651,7 @@
651651
:$disturbance-increment (f/ 1 5)
652652
653653
:act (meth []
654-
(doc f"Float — If you're adjacent, increases your floater disturbance by {@disturbance-increment}. If your floater disturbance reaches 1, it's cleared and the monster attacks. Otherwise, the monster wanders per `Wander`.")
654+
(doc f"If you're adjacent, increases your floater disturbance by {@disturbance-increment}. If your floater disturbance reaches 1, it's cleared and the monster attacks. Otherwise, the monster wanders per `Wander`.")
655655
(when (adjacent? @pos G.player.pos)
656656
(+= G.player.floater-disturbance @disturbance-increment)
657657
(when (pop-integer-part G.player.floater-disturbance)
@@ -679,7 +679,7 @@
679679
:$summon-frequency (f/ 1 10)
680680
681681
:act (meth []
682-
(doc f"Blob – If the monster can attack, it does. Otherwise, if it has more than 1 HP, it builds up {@summon-frequency} summoning power per turn. With enough power, it can split (per `Generate`) into two blobs with half HP (in case of odd HP, the original gets the leftover hit point). If it lacks the HP or summoning power for splitting, it wanders per `Wander`.")
682+
(doc f"If the monster can attack, it does. Otherwise, if it has more than 1 HP, it builds up {@summon-frequency} summoning power per turn. With enough power, it can split (per `Generate`) into two blobs with half HP (in case of odd HP, the original gets the leftover hit point). If it lacks the HP or summoning power for splitting, it wanders per `Wander`.")
683683
(when (@try-to-attack-player)
684684
(return))
685685
(when (and
@@ -709,7 +709,7 @@
709709
#("Growth timer" @growth-timer)))
710710
711711
:act (meth []
712-
"Gunk Up — The monster's growth timer decreases by 1. If the timer has hit 0, it then transforms into an adult gunk."
712+
"The monster's growth timer decreases by 1. If the timer has hit 0, it then transforms into an adult gunk."
713713
(-= @growth-timer 1)
714714
(when (= @growth-timer 0)
715715
(@replace "gunk")))
@@ -727,7 +727,7 @@
727727
:$summon-frequency (f/ 1 5)
728728
729729
:act (meth []
730-
(doc f"Gunky — If the monster can attack, it does. Otherwise, it builds up {@summon-frequency} summoning power per turn, which it can use to summon gunk seeds per `Generate`.")
730+
(doc f"If the monster can attack, it does. Otherwise, it builds up {@summon-frequency} summoning power per turn, which it can use to summon gunk seeds per `Generate`.")
731731
(or
732732
(@try-to-attack-player)
733733
(@summon :stem "gunk seed" :frequency @summon-frequency :hp 1)))
@@ -749,7 +749,7 @@
749749
:sees-invisible T
750750
751751
:act (meth []
752-
"Haunt — Try to attack or approach per `Approach`. If that fails, try moving with a variation of `Approach` that allows skipping one intermediate tile."
752+
"Try to attack or approach per `Approach`. If that fails, try moving with a variation of `Approach` that allows skipping one intermediate tile."
753753
(or
754754
(@approach :advance-approach-dir F)
755755
(@approach :implicit-attack F :jump T)))
@@ -765,7 +765,7 @@
765765
:$approach-range 2
766766
767767
:act (meth []
768-
(doc f"Webcrawl — If the monster is within {@approach-range} squares of you, it approaches (per `Approach`). Otherwise, it wanders (per `Wander`). In both cases, it can move through webs, and it creates a web on its square afterwards if no web is there already.")
768+
(doc f"If the monster is within {@approach-range} squares of you, it approaches (per `Approach`). Otherwise, it wanders (per `Wander`). In both cases, it can move through webs, and it creates a web on its square afterwards if no web is there already.")
769769
; Move or attack.
770770
(if (and
771771
(<= (dist G.player.pos @pos) @approach-range)
@@ -842,7 +842,7 @@
842842
:$shot-frequency (f/ 3 4)
843843
844844
:act (meth []
845-
(doc f"Teleport Attack — If the monster has line of sight to you, it adds {@shot-frequency} to its shot power. If this is ≥1, it subtracts 1 to shoot you. If it doesn't shoot you, it tries to teleport into line of sight, preferring to be as close as possible to you without being adjacent. Its destination must lie in the reality bubble.")
845+
(doc f"If the monster has line of sight to you, it adds {@shot-frequency} to its shot power. If this is ≥1, it subtracts 1 to shoot you. If it doesn't shoot you, it tries to teleport into line of sight, preferring to be as close as possible to you without being adjacent. Its destination must lie in the reality bubble.")
846846
; Teleporting mages' movement is much smarter than that of IQ's
847847
; invisible mages, which compensates for the loss of their main
848848
; ability.
@@ -935,7 +935,7 @@
935935
:$approach-range 3
936936
937937
:act (meth []
938-
(doc f"Guard — If the monster is within {@approach-range} squares of you, it approaches (per `Approach`). Otherwise, it does nothing.")
938+
(doc f"If the monster is within {@approach-range} squares of you, it approaches (per `Approach`). Otherwise, it does nothing.")
939939
(when (and
940940
(<= (dist G.player.pos @pos) @approach-range)
941941
(not (@player-invisible-to?)))
@@ -964,7 +964,7 @@
964964
:damage-melee 10
965965
966966
:act (meth []
967-
"Tunnel — As `Wander`, but if the selected square is impassable, the monster tries to destroy one tile on that square. A tile can be destroyed if it's permeable with a passwall amulet. If successful, the monster can try once more to move onto that square."
967+
"As `Wander`, but if the selected square is impassable, the monster tries to destroy one tile on that square. A tile can be destroyed if it's permeable with a passwall amulet. If successful, the monster can try once more to move onto that square."
968968
(@wander :bump-hook @destroy-walls))
969969
970970
:$destroy-walls (meth [target]
@@ -1111,7 +1111,7 @@
11111111
"act" (hy.repr (str (get @action-list @action-i)))})
11121112
11131113
:act (meth []
1114-
(doc f"Idiosyncratic — If the monster can attack, it does. Otherwise, it rotates among its list of actions. `wander` works per `Wander`. `bats` summons {@summon-frequency} bats, each with {@summon-hp} HP. `vampirize` attempts to turn an adjacent monster into a vampire, and works per `Wander` if no eligible monster is present.")
1114+
(doc f"If the monster can attack, it does. Otherwise, it rotates among its list of actions. `wander` works per `Wander`. `bats` summons {@summon-frequency} bats, each with {@summon-hp} HP. `vampirize` attempts to turn an adjacent monster into a vampire, and works per `Wander` if no eligible monster is present.")
11151115
(when (@try-to-attack-player)
11161116
(return))
11171117
(ecase (get @action-list @action-i)
@@ -1204,7 +1204,7 @@
12041204
T)
12051205
12061206
:act (meth []
1207-
(doc f"Idiosyncratic — If the monster is within {@sight-range} squares, it approaches (per `Approach`) if empty-handed, and flees (per `Approach` in reverse) if it's carrying an item. Otherwise, it wanders (per `Wander`), taking any item it happens to step onto. It drops what it's holding if it gets a new item, or after {@initial-interest} steps of wandering.")
1207+
(doc f"If the monster is within {@sight-range} squares, it approaches (per `Approach`) if empty-handed, and flees (per `Approach` in reverse) if it's carrying an item. Otherwise, it wanders (per `Wander`), taking any item it happens to step onto. It drops what it's holding if it gets a new item, or after {@initial-interest} steps of wandering.")
12081208
(when (and
12091209
(<= (dist G.player.pos @pos) @sight-range)
12101210
(not (@player-invisible-to?)))
@@ -1287,7 +1287,7 @@
12871287
:grow-stem "wyrmling"
12881288
12891289
:act (meth []
1290-
(doc f"Grow — The monster {@grow-help}")
1290+
(doc f"The monster {@grow-help}")
12911291
(@regen)))
12921292
12931293
(deftile "D " "a wyrmling" Dragon

0 commit comments

Comments
 (0)