Revision: 211
Author: GreenbergJH
Date: Sun Dec 16 14:13:17 2012
Log: Added Night Shroud, an excellent body armor with the drawback of
radiating darkness. Added description for crepuscular helm.
http://code.google.com/p/nyctos/source/detail?r=211
Added:
/trunk/src/data.res/scripts/armor/nightshroud.py
Modified:
/trunk/src/data.res/scripts/armor/crepuscularhelm.py
/trunk/src/data.res/scripts/armor/manifest.py
=======================================
--- /dev/null
+++ /trunk/src/data.res/scripts/armor/nightshroud.py Sun Dec 16 14:13:17
2012
@@ -0,0 +1,52 @@
+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 NightShroud(sim_items.Armor, sim_items.LightSource):
+ def __init__(self):
+ bonuses = {
+ 'evMod': 2,
+ 'pvMod': 12,
+ }
+
+ sim_items.Armor.__init__(self,
+ 'night shroud', # name
+ parole.map.AsciiTile('[', colors['Black']), # appearance
+ 15, # weight (lbs)
+ ['body'], # slot(s)
+ 20000, # energy to wear
+ bonuses)
+
+ sim_items.LightSource.__init__(self,
+ 'night shroud', #name
+ 50, # layer
+ parole.map.AsciiTile('[', colors['Black']),
+ 15, # weight
+ 7000, # light energy
+ (25, 25, 112), # light color
+ -2.0, # light intensity
+ 120000*600000, # burn time
+ showBurnTime=False,
+ dousable=False,
+ litAdjective="gloaming",
+ handsNeeded=0, # already takes a hand to ready as shield
+ unidDescription="This incredibly hard mail is made from a
gloomy metal that you"
+ "cannot identify. It devours the light around you.")
+
+ 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.Armor.listen(self, event)
+ sim_items.LightSource.listen(self, event, superListen=False)
+
+#========================================
+thingClass = NightShroud
=======================================
--- /trunk/src/data.res/scripts/armor/crepuscularhelm.py Sun Dec 16
13:13:43 2012
+++ /trunk/src/data.res/scripts/armor/crepuscularhelm.py Sun Dec 16
14:13:17 2012
@@ -34,9 +34,7 @@
dousable=False,
litAdjective="glowing",
handsNeeded=0, # already takes a hand to ready as shield
- unidDescription="An oil-fueled flame enclosed in glass
placed "\
- "behind a medium sized shield. Lantern shields are "\
- "prized for providing both protection and light.")
+ unidDescription="This golden helm gleams with the rays of
the sun itself.")
self.snuffable = False
self.startIntensity = self.lightIntensity
=======================================
--- /trunk/src/data.res/scripts/armor/manifest.py Sun Dec 16 13:13:43 2012
+++ /trunk/src/data.res/scripts/armor/manifest.py Sun Dec 16 14:13:17 2012
@@ -25,6 +25,7 @@
('spidergloves', 10),
('lanternshield', 10),
('crepuscularhelm', 10),
+ ('nightshroud', 10),
]
manifest = {
@@ -119,6 +120,7 @@
('lanternshield' , 2),
('crepuscularhelm', 1),
+ ('nightshroud', 1),
],
6: [
@@ -142,6 +144,7 @@
('lanternshield' , 2),
('crepuscularhelm', 1),
+ ('nightshroud', 2),
],
}