[nyctos] r213 committed - Kadath blade - powerful darkness emitting weapon.

0 views
Skip to first unread message

nyc...@googlecode.com

unread,
Dec 16, 2012, 8:15:46 PM12/16/12
to nycto...@googlegroups.com
Revision: 213
Author: GreenbergJH
Date: Sun Dec 16 17:15:04 2012
Log: Kadath blade - powerful darkness emitting weapon.
http://code.google.com/p/nyctos/source/detail?r=213

Added:
/trunk/src/data.res/scripts/weapons/kadathblade.py
Modified:
/trunk/src/data.res/scripts/weapons/manifest.py

=======================================
--- /dev/null
+++ /trunk/src/data.res/scripts/weapons/kadathblade.py Sun Dec 16 17:15:04
2012
@@ -0,0 +1,60 @@
+import parole
+from parole.colornames import colors
+from parole.display import interpolateRGB
+import pygame, random
+
+import sim, main, util, sim_items
+from util import *
+
+class KadathBlade(sim_items.Weapon, sim_items.LightSource):
+ def __init__(self):
+ bonuses = {
+ 'hitMod': +2,
+ 'damageSkewMod': +4,
+ }
+
+ # TODO: depth, materials, etc.
+ sim_items.Weapon.__init__(self,
+ 'kadath blade', # base name
+ parole.map.AsciiTile(')', colors['Black']), # symbol
+ 8, # weight
+ 1100, # wield energy
+ 850, # attack energy
+ 90, # maximum damage. a wielder with avg stats will
average half
+ # this much damage
+ bonuses,
+ 'slash', # verb
+ False, # startsVowel
+ projectileDamage=30)
+
+ sim_items.LightSource.__init__(self,
+ 'kadath blade', #name
+ 50, # layer
+ parole.map.AsciiTile(')', colors['Black']),
+ 8, # weight
+ 7000, # light energy
+
colors[random.choice(['Azure', 'DarkCyan', 'DarkSlateBlue', 'Navy'])], #
light color
+ -6.0, # light intensity
+ 120000*60000, # burn time
+ showBurnTime=False,
+ dousable=False,
+ litAdjective="devouring",
+ handsNeeded=0, # already takes a hand to ready as shield
+ unidDescription="Light itself is drawn to and consumed by
this insatiable blade. It is"
+ "impossible to see the blade itself, but
its outline suggests non-Euclidean"
+ "geometry and madness.")
+
+ self.snuffable = False
+ self.startIntensity = self.lightIntensity
+ self.startBurnTime = self.burnTime
+ main.schedule.add(sim.Event('activate light', main.schedule.time,
+ (self,), dests=[self]))
+ self.fading = False
+
+ def listen(self, event):
+ sim_items.Weapon.listen(self, event)
+ sim_items.LightSource.listen(self, event, superListen=False)
+
+#========================================
+thingClass = KadathBlade
+
=======================================
--- /trunk/src/data.res/scripts/weapons/manifest.py Sun Dec 16 16:31:10 2012
+++ /trunk/src/data.res/scripts/weapons/manifest.py Sun Dec 16 17:15:04 2012
@@ -13,6 +13,7 @@
('waraxe', 10),
('whip', 10),
('dawnsword', 10),
+ ('kadathblade', 10),
]

manifest = {
@@ -72,6 +73,7 @@

('waraxe', 5),
('dawnsword', 1),
+ ('kadathblade', 1),
],

6: [
@@ -87,6 +89,7 @@

('waraxe', 10),
('dawnsword', 2),
+ ('kadathblade', 2),
],
}

Reply all
Reply to author
Forward
0 new messages