Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; This function is designed to see if it is raining or not
- ;
- ; If it is raining, the actor (player) is assigned an infoportion "its_raining"
- ; If it isn't raining, the actor (player) loses the infoportion
- ;
- ; The infoportion has been defined in config\gameplay\info_l01_escape.xml
- ; <info_portion id="its_raining"></info_portion>
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- function weather_class(avail_types, npc)
- local type = "weather_good"
- if level.rain_factor() < 0.07 then
- type = "weather_good"
- db.actor:disable_info_portion("its_raining") -- added by Daemonion for LURK 1.2
- else
- type = "weather_bad"
- db.actor:give_info_portion("its_raining") -- added by Daemonion for LURK 1.2
- end
- return type
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement